package com.itcast.database.smooth.service;

import com.itcast.database.smooth.entity.TradeOrder;

import java.util.List;

/**
 * <p>Description: </p>
 * @date 
 * @author 
 * @version 1.0
 * <p>Copyright:Copyright(c)2020</p>
 */
public interface ITradeOrderService {


    /**
     * 创建订单
     * @param accountNo
     * @param execPrice
     */
    Long addOrder(Long accountNo, Long execPrice);

    /**
     * 获取所有订单
     * @return
     */
    List<TradeOrder> findAllByAccountNo(Long accountNo);

    /**
     * 获取所有订单
     * @return
     */
    List<TradeOrder> getAllOrders();
}
